<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../js/jquery-1.7.2.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#divId").click(function () {
                alert("DIV");
            });
            $("#btnId").click(function () {
                alert("BUTTON");
            });
        });
    </script>
</head>
<body>
<div id="divId" style="border: 1px solid #000;">
    <input type="button" value="点击" id="btnId">
</div>
</body>
</html>